<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>02.父项属性-flex-direction</title>

  <style>

  .box{
    height: 120px;
    background-color: pink;
    display: flex;
  }

  .box1{
    background-color: pink;
    display: flex;
    flex-direction:column;
  }

  .box2{
    background-color: pink;
    display: flex;
    flex-direction:row-reverse;
  }

  .item {
    width: 100px;
    height: 100px;
    background-color: blueviolet;
    margin-top: 10px;
    border-radius: 10px;
  }

  </style>
</head>
<body>

<h4> 主轴为x轴 </h4>
<div class="box">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
  <div class="item">8</div>
  <div class="item">9</div>
</div>

<h4> 主轴为y轴 </h4>
<div class="box1">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
</div>

<h4> flex-direction:row-reverse </h4>
<div class="box2">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
  <div class="item">8</div>
  <div class="item">9</div>
</div>







</body>
</html>